<?php
/**
 * Created by SonHA
 * User: SonHA
 * Date: 02/05/13
 * Time: 2:29 PM
 */
/* @var $model Product */
?>
<script type="text/javascript">
$(document).ready(function() {
    $('.fancybox-buttons').fancybox({
        openEffect  : 'none',
        //closeEffect : 'none',
        prevEffect  : 'none',
        nextEffect  : 'none',
        closeBtn    : true,
        helpers     : {
            title : {
                type : 'inside'
            },
            buttons : {},
            thumbs : {
                    width  : 120,
                    height : 80
                }
            },
})
});
</script>
<div class="contentContainer first">
    <div class="contentPadd prods_info_page">
        <div class="prods_info decks big">
            <div class="forecastle">
                <ol class="masthead">
                    <li class="port_side left_side_pic-1">
                        <div id="piGal" class="hover" style="visibility: visible;">
                            <div id="loading" style="text-align: center; width: 220px; display: none;">
                                <img src="<?php echo Yii::app()->request->baseUrl; ?>/css/images/spinner.gif">
                            </div>
                            <div class="outer">
                                <ul class="gallery" style="display: block; height: 264px; width: 220px;">
                                    <li>
                                        <a href="<?php echo Yii::app()->request->baseUrl . $model->avatar ?>" class="fancybox-buttons" data-fancybox-group="gallery"  title="<?php echo $model->name ?>" >
                                                <img
                                                src="<?php echo Yii::app()->request->baseUrl . $model->avatar ?>"
                                                alt="<?php echo Yii::app()->request->baseUrl . $model->name ?>"
                                                title="<?php echo $model->name ?>"
                                                width="220" height="220"
                                                style="width:220px;height:220px;margin:0px 0px 0px 0px;">
                                            </a>
                                    <li>
                                </ul>
                                <div style="clear:both"></div>
                            </div>
                        </div>
                        
                        
                    </li>
                    <li class="starboard_side right_side_pic-1">
                        
                        <div class="info">
                            <div class="data data_padd product-name">
                                <?php echo $model->name;?>
                            </div>
                            <br>

                            <h2>Mã sản phẩm: <?php echo $model->id; ?></h2>

                            <h2 class="price">
                                <span class="productSpecialPrice"><?php echo number_format($model->price, 0, "", ".") ?> VNĐ</span>
                            </h2>
                            <?php
                                if($model->short_description):
                            ?>
                            <div class="options">
                                <?php echo $model->short_description; ?>
                            </div>
                            <?php endif;?>
                            <?php if($model->description): ?>
                            <div class="desc desc_padd">
                                <?php echo $model->description; ?>
                            </div>
                            <?php endif; ?>
                            
                        </div>
                    </li>
                </ol>
            </div>
        </div>
    </div>
</div>
<div class="box_wrapper_title22">
    <div class="box_wrapper_title"><span class="title-icon"></span>

        <h1 class="cl_both ">Các sản phẩm có thể bạn quan tâm</h1>
    </div>
</div>
<?php $this->renderPartial('/site/_products_feature', array('items' => $sugest_products, 'last' => 'last')) ?>